﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Code.Models
{
    public enum TakeMoneyState
    {
        /// <summary>
        /// 已拒绝
        /// </summary>
        Refuse=-1,
        /// <summary>
        /// 未处理
        /// </summary>
        UnDispose=0,
        /// <summary>
        /// 已处理
        /// </summary>
        Dispose=1,
    }

    public static class TakeMoneyStateEx
    {
        public static string GetName(this TakeMoneyState state)
        {
            switch (state)
            { 
                case TakeMoneyState.Dispose:
                    return "已受理";
                case TakeMoneyState.UnDispose:
                    return "未处理";
                case TakeMoneyState.Refuse:
                    return "已拒绝";
                default: return state.ToString();
            }
        }
    }
}
